﻿create procedure [dbo].[usp_ExceptionInnerExceptionDelete]
	@ExceptionId int
	, @InnerExceptionId int
as

begin try
	
	begin transaction
	
		delete from [dbo].[ExceptionInnerException]
		where [ExceptionId] = @ExceptionId and [InnerExceptionId] = @InnerExceptionId
			
	commit transaction

end try
	
begin catch
	if @@trancount > 0
	begin
		rollback transaction;
	end
	execute [dbo].[usp_SqlErrorInsert]
end catch


